home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MSO2K Web 1.xpl < prev    next >
Text File  |  1999-09-11  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Office 2000"
  5. "NAME"="URL Options"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Office URL"
  9. "DESCRIPTION 1"="This plug-in can be used to configure the URL that is opened when you click the "Help" - "Office on the Web" link."
  10. "DESCRIPTION 2"="To restore the original URL, clear the fields."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"=" "
  15.  
  16.  
  17. sV1="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\Internet\OfficeOnTheWeb"
  18. sPCheck="HKCU\Software\Microsoft\Office\9.0\"
  19. Sub Plugin_Initialize 
  20. if RegPathExists(sPCheck) then
  21.  s=RegReadValue(sV1)
  22.  Call SetUIElement(1,s)
  23. else
  24.  Call Disable()
  25. end if
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  s=GetUIElement(1)
  33.  if len(s)>0 then
  34.     Call RegWriteValue(sV1,s,1)
  35.  else
  36.     s=RegReadValue(sV1)
  37.     if IsEmpty(s)=false then
  38.        Call RegDeleteValue(sV1)
  39.     end if
  40.  end if
  41.  
  42.  Call Logoff
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.